import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "virtual:svg-icons-register";
import App from "./App.vue";
import "@/styles/index.scss";
import router from "./router";
import "./permisstion";
//@ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
//全局组件
import gloablComponent from "@/components/index";
import pinia from "@/store/index";
const app = createApp(App);
app.use(gloablComponent);
app.use(router);
app.use(pinia);
app.use(ElementPlus, {
  locale: zhCn,
});

app.mount("#app");
